gadgetgettexteditorypos#()

Description:

Get the vertical ( y ) position for the view area in gadgettexteditor(), gadgettextselection() gadgets.

Note: this command will only work with the gadgettexteditor() or gadgettextselection() gadget.

Syntax:

Required syntax:

 

ypos/ypos# = gadgetgettexteditorypos#( gadgethandle )

 

Optional syntax:

 

ypos/ypos# = gadgetgettexteditorypos#( gadgethandle , [ pixel_position ] )

 

Parameters:

Required parameters

Description

gadgethandle The handle to the gadget´s view area, you wish to get the vertical position of

Optional parameters

Description

Default
pixel_position Boolean value to set if the returned value should be in percentage down, or pixels down
(percentage down = 0 / pixels down = 1)
0

Returns:

Either a real number as percentage down (0.5 = 50 % = halfway down )
Or an integer as pixels down

Example: